package com.dbh.company.freeform.test;

import cn.hutool.core.lang.Console;
import cn.hutool.log.dialect.console.ConsoleLog;

import java.io.IOException;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

/**
 * @author dongbanghui
 * @create 2023/7/24
 */
public class JarFileTest1 {
    public static void main(String[] args) throws IOException {

        JarFile jarFile = new JarFile("D:\\data\\work\\file\\电子签\\0720线上问题\\normal-freeform-jar.zip");
        int count  = 0;
        for (Enumeration<JarEntry> entries = jarFile.entries(); entries.hasMoreElements();) {
            JarEntry entry = entries.nextElement();
            String entryPath = entry.getName();
            Console.log(++count + " " + entryPath);
        }


    }
}
